using System;
using System.Data;
using System.Collections.Generic;
namespace Sync.DAO
{
    /********************************BEGIN SyncLogsDAO****************************************/
    ///<summary>
    /// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
    /// <para>Date:21/03/2011 24:09:58</para>
    /// <para>Class Name: SyncLogsDAO</para>
    /// <para>Description: Class access to table SyncLogs in database. Class for coder code here</para>
    ///</summary>


    public class SyncLogsDAO : SyncLogsDAOBase
    {
        public DataSet GetDataSync(string TableName, string KeyName, List<SyncLogsEntity> ls)
        {
            IDbCommand command = this.CreateCommand();
            command.CommandText = "SELECT * FROM " + TableName;
            List<string> lsS = new List<string>();
            foreach (SyncLogsEntity syncLogsEntity in ls)
            {
                lsS.Add(syncLogsEntity.Row_ID.ToString());
            }
            command.CommandText += " WHERE " + KeyName + " IN(" + string.Join(",", lsS.ToArray()) + ")";
            return this.SelectDS(command);
        }

    }
    /*****************************************************************************************************/
    /**********************************END SyncLogsDAO*****************************************/
    /*****************************************************************************************************/
}

